<div class="user profile module">
  <%= render :partial => 'users/header', :locals => {:user => @user} %>

<div class="user module">
<h3><%=h ts("About %{name}", :name => @user.login) %></h3>
<p class="datetime"><%= ts("Member since: %{date}", :date => l(@user.created_at.to_date)) %></p>
<h4><%=h @user.profile.title %></h4>
<div class="wrapper">
  <dl class="user meta">
    <dt class="pseuds"><%= link_to ts("My pseuds:"), user_pseuds_path(@user) %></dt>
      <dd class="pseuds"><%= print_pseud_list(@user.pseuds) %></dd>
    <% if @user.profile.location? %>
    <dt class="location"><%=h ts("I live in:") %></dt>
      <dd><%=h @user.profile.location %></dd>
    <% end %>
    <% if @user.preference.try(:date_of_birth_visible) %>
    <dt class="birthday"><%=h ts("My birthday:") %></dt>
      <dd class="birthday"><%=l(@user.profile.date_of_birth) unless @user.profile.date_of_birth.blank? %></dd> 
    <% end %>
    <% if @user.preference.try(:email_visible) %>
    <dt class="email"><%=h ts("My email address:") %></dt>
      <dd class="email"><%= mail_to @user.email, nil, :encode => "hex" %></dd>
    <% end %>
  </dl>
</div>
</div>
  <% unless @user.profile.about_me.blank? %>
    <div class="user module">
      <h3><%=h ts("Bio:") %></h3>
      <blockquote class="userstuff"><%=raw sanitize_field(@user.profile, :about_me) %></blockquote>
    </div>
  <% end %>
  
  <% if logged_in? && current_user == @user %>
  <h3 class="landmark">Actions</h3>
<ul class="navigation" role="navigation">
    <li><%= link_to ts("Edit My Profile"), edit_user_path(@user) %></li>
    <li><%= link_to ts("Set My Preferences"), user_preferences_path(@user) %></li>
    <li><%= link_to ts("Manage My Pseuds"), user_pseuds_path(@user) %></li>
    <li><%= link_to ts("Delete My Account"), @user, :confirm => ts('This will permanently delete your account and cannot be undone. Are you sure?'), :method => :delete %></li>
  </ul>
  <% end %>
</div>
